import request from "@/utils/request";
import data from "@/views/system/dict/data.vue";
import { reqBaseData, reqTableData } from "@/api/type";


// 分页查询
export const reqScorePageList = (params) => {
  return request<any, reqTableData>({
    url: 'credit/score/list',
    method: 'get',
    params: params,
  })
}

// 评分提交
export const reqScoring = (data) => {
  return request<any,reqBaseData>({
    url: 'credit/score/scoring',
    method: 'post',
    data: data,
  })
}

// 或者农户评分列表
export const reqScoringData = (hzId) => {
  return request<any, any>({
    url: 'credit/score/scoreData' + "/" + hzId,
    method: 'get',
  })
}
